@extends('admin/layout.app')

@section('title', '添加职位')

@section('content')
    @if (count($errors) > 0)
        <div class="col-lg-9">
            <div class="alert alert-danger">
                <ul>
                    @if(is_object($errors))
                        @foreach($errors->all() as $error)
                            <li>{{$error}}</li>
                        @endforeach
                    @else
                        <li>{{$errors}}</li>
                    @endif
                </ul>
            </div>
        </div>
    @endif
    <div class="col-lg-10">
        <form class="form-horizontal" action="/admin/role" method="post">
            {{csrf_field()}}
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">职务名称</label>
                <div class="col-sm-8">
                    <input type="text" name="name" class="form-control" id="inputEmail3" placeholder="用户名">
                </div>
            </div>
            <div class="form-group">
                <label for="input-remark" class="col-sm-2 control-label">备注</label>
                <div class="col-sm-8">
                    <textarea class="form-control" name="remark"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label for="input-status" class="col-sm-2 control-label">状态</label>
                <div class="col-sm-8">
                    <p class="pt6pr12">
                        <input id="input-status-1" type="radio" name="status"
                               value="1" checked/> <label
                                for="input-status-1">正常</label>
                        <input id="input-status-2" type="radio" name="status"
                               value="2"/> <label
                                for="input-status-2">禁用</label>
                    </p>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-10">
                    <button type="submit" class="btn btn-default">保存</button>
                </div>
            </div>
        </form>
    </div>
@endsection
